package com.lyc.api.exception;

import com.lyc.common.enums.ResultEnum;

/**
 * Created by 廖师兄
 * 2017-05-29 22:38
 */
public class BookException extends RuntimeException {

    private Integer code;

    public BookException(ResultEnum resultEnum) {
        super(resultEnum.getMessage());
        this.code = resultEnum.getCode();
    }
}
